package top.lixunda.ecommerce.server.good.api.entity.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.lixunda.common.validate.annotation.XumMin;
import top.lixunda.common.validate.annotation.XumNotNull;

/**
 * @author Xumda
 * @version time:2020/2/24 19:45
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GoodOrderInsertDTO {

    /**
     * 子商品id
     */
    @XumNotNull
    private Integer subGoodId;

    /**
     * 商品数量
     */
    @XumMin(1)
    @XumNotNull
    private Integer count;

    /**
     * 收货地址
     */
    @XumNotNull
    private Long addressId;

    /**
     * 买家留言
     */
    private String message;

}
